
import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

/**
 * 工具类
 */
@ccclass('Utils')
export class Utils extends Component {

    //获取一个指定范围的随机数
    public static getRandomValueInRange(min: number, max: number) {
        const range = max - min;
        const randomValue = Math.random() * range + min
        return randomValue
    }
}
